import 'package:flutter/material.dart';

/// 作者: Tao
/// 日期: 2024/1/15
/// 时间: 14:14
/// 描述: 公共资源类，包含颜色、共有常量
class GSYColors {
  static const String welcomeMessage = "Welcome To Flutter";

  static const int primaryValue = 0xFF24292E;
  static const int primaryLightValue = 0xFF42464b;
  static const int primaryDarkValue = 0xFF121917;

  static const int cardWhite = 0xFFFFFFFF;

  static const int textWhite = 0xFFFFFFFF;

  static const MaterialColor primarySwatch = MaterialColor(
      primaryValue, <int, Color>{
    50: Color(primaryLightValue),
    100: Color(primaryLightValue),
    200: Color(primaryLightValue),
    300: Color(primaryLightValue),
    400: Color(primaryLightValue),
    500: Color(primaryValue),
    600: Color(primaryDarkValue),
    700: Color(primaryDarkValue),
    800: Color(primaryDarkValue),
    900: Color(primaryDarkValue),
  });
}

class GSYConstant{
}

class GSYStrings {
  static const String login_text = "登录";
  static const String login_username_hint_text = "请输入github用户名";
  static const String login_password_hint_text = "请输入密码";
  static const String login_success = "登录成功";

  static const String network_error_401 = "未授权或授权登录失败";
  static const String network_error_403 = "403权限错误";
  static const String network_error_404 = "404错误";
  static const String network_error_timeout = "请求超时";
  static const String network_error_unknown = "其他异常";
}